﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WCFAuthorization.Service
{
    [Serializable]
    public class User
    {
        public User()
        {
            this.Id = Guid.NewGuid();
        }

        public User(string name, DateTime expired, bool isenable, string tag)
        {
            this.Id = Guid.NewGuid();
            this.UserName = name;
            this.ExpiredTime = expired;
            this.Enable = isenable;
            this.Tag = tag;
        }

        public Guid Id
        {
            get;
            set;
        }

        public string UserName
        {
            get;
            set;
        }

        public bool Enable
        {
            get;
            set;
        }

        public DateTime ExpiredTime
        {
            get;
            set;
        }

        public string Tag
        {
            get;
            set;
        }
    }
}
